package com.swj.gateway.service;



import com.swj.common.core.exception.CaptchaException;
import com.swj.common.core.model.web.RestResult;

import java.io.IOException;

/**
 * 验证码处理
 *
 * @author ruoyi
 */
public interface ValidateCodeService {

    /**
     * 生成验证码
     * @return
     * @throws IOException
     * @throws CaptchaException
     */
    public RestResult<?> createCaptcha() throws IOException, CaptchaException;

    /**
     * 校验验证码
     */
    public void checkCaptcha(String key, String value) throws CaptchaException;
}
